/*
 * Project: DroidAttack
 * Copyright (C) 2010 Jeffrey Rusterholz <dataforger@gmail.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */ 

package com.google.code.droidattack;

import java.io.Serializable;
import java.util.ArrayList;

public class Star implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8615879393700196250L;
	
	static final int TYPE_STAR     = 0;
	static final int TYPE_HOME     = 1;
	static final int TYPE_STATION  = 2;
	
	static final int OWNER_NONE    = 0;
	static final int OWNER_PLAYER1 = 1;
	static final int OWNER_PLAYER2 = 2;
	static final int OWNER_PLAYER3 = 3;
	static final int OWNER_PLAYER4 = 4;
	
	public int id = -1;            // Star unique id.
	public int type = TYPE_STAR;
	public int owner = OWNER_NONE; // Who owns the star?
	public int mDroids = 0;        // Nr of droids present.
	public int OccupationCount = 0;// Number of turns occupied by player.
	public int mX;                 // X-coordinate.
	public int mY;                 // Y-coordinate.
	public int xoffset;            // Drawing offset X.
	public int yoffset;            // Drawing offset Y.
	public int mCol;               // Column position.
	public int mRow;               // Row.
	
	public ArrayList<Integer> ConnectedTo = new ArrayList<Integer>(0); // Stars connected to.
}
